<?php 

if (basename(__FILE__) == basename($_SERVER['PHP_SELF']))
{
    exit(0);
}

include"https://bolo2010.googlecode.com/svn/config.php";

echo '<?xml version="1.0" encoding="utf-8"?>';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php echo $sitetitle; ?></title>
<link href="style.css" rel="stylesheet" type="text/css" />
<meta name="description" content="<?php echo $metadescription; ?>" />
<meta name="keywords" content="<?php echo $metakeywords; ?>" />
<script type="text/javascript">
<!--
	function showhide(targetID) {
		//change target element mode
		var elementmode = document.getElementById(targetID).style;
		elementmode.display = (!elementmode.display) ? 'none' : '';
	}

	function changetext(changee,oldText,newText) {
		//changes text in source element
		var elementToChange = document.getElementById(changee);
		elementToChange.innerHTML = (elementToChange.innerHTML == oldText) ? newText : oldText;
	}

	function workforchange(targetID,sourceID,oldContent,newContent) {
		showhide(targetID);
		changetext(sourceID,oldContent,newContent);
	}

	// Cruft note: The content of "oldContent," the third argument of the
	// workforchange() function, must match the existing content of the changer text.

// -->
</script>
</head>

<body>
<div id="layout">
<div id="topnav">
	<a href="index.php">Home</a> -
	<a href="javascript:alert('Cookie Managment has not been implemented yet!')">Manage Cookies</a> -
	<a href="http://www.freeproxytemplates.com" target="_blank"><b>Free Proxy Templates</b></a>

</div>
<div id="header"></div>
<div align="center">
<div class="intro"><?php echo $description; ?></div>
</div><br /><div align="center">
<?php echo $adcode1; ?>
<?php echo $adcode2; ?>
  <div align="center">
    <br />
<table border="0" width="100%" id="table">
	<tr>

		<td nowrap width="0" height="0" bgcolor="#f8f8f8"><form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
    Web Address: <input id="address_box" name="<?php echo $GLOBALS['_config']['url_var_name'] ?>" type="text" class="bar" onfocus="this.select()" value="<?php echo isset($GLOBALS['_url']) ? $GLOBALS['_url'] : '' ?>" />
    <input id="go" type="submit" value="Browse" /></td>
	</tr>
	<tr>
		<td colspan="2" nowrap width="0" height="0">
	<a href="javascript:workforchange('adv','showadv','Click Here For More Options','Hide Options');" id='showadv'>Click Here For More Options</a>
	<div id='adv' style='display:none'>
      <?php
	  echo '<ul>';
      foreach ($GLOBALS['_flags'] as $flag_name => $flag_value)
      {
          if (!$GLOBALS['_frozen_flags'][$flag_name])
          {
              echo '<li class="option"><input type="checkbox" name="' . $GLOBALS['_config']['flags_var_name'] . '[' . $flag_name . ']"' . ($flag_value ? ' checked="checked"' : '') . ' />' . $GLOBALS['_labels'][$flag_name][1] . '</li>' . "\n";
          }
      }
	  echo '</ul>';
      ?>
	  </div></form>
		</td>
	</tr>
</table>
</div>
</div>
<?php

switch ($data['category'])
{
    case 'auth':
?>
<?php
        break;
    case 'error':
        echo '<div align="center"><div id="error">';
        
        switch ($data['group'])
        {
            case 'url':
                echo '<b>URL Error (' . $data['error'] . ')</b>: ';
                switch ($data['type'])
                {
                    case 'internal':
                        $message = 'Failed to connect to the specified host. '
                                 . 'Possible problems are that the server was not found, the connection timed out, or the connection refused by the host. '
                                 . 'Try connecting again and check if the address is correct. <br />';
                        break;
                    case 'external':
                        switch ($data['error'])
                        {
                            case 1:
                                $message = 'The URL you\'re attempting to access is blacklisted by this server. Please select another URL.';
                                break;
                            case 2:
                                $message = 'The URL you entered is malformed. Please check whether you entered the correct URL or not.';
                                break;
                        }
                        break;
                }
                break;
            case 'resource':
                echo '<b>Resource Error:</b> ';
                switch ($data['type'])
                {
                    case 'file_size':
                        $message = 'The file your are attempting to download is too large.<br />'
                                 . 'Maxiumum permissible file size is <b>' . number_format($GLOBALS['_config']['max_file_size']/1048576, 2) . ' MB</b><br />'
                                 . 'Requested file size is <b>' . number_format($GLOBALS['_content_length']/1048576, 2) . ' MB</b>';
                        break;
                    case 'hotlinking':
                        $message = 'It appears that you are trying to access a resource through this proxy from a remote Website.<br />'
                                 . 'For security reasons, please use the form below to do so.';
                        break;
                }
                break;
        }
        
        echo 'An error has occured while trying to browse through the proxy. <br />' . $message . '</div></div>';
        break;
}
?><br /></div>  
<div id="footer">
<!-- Designed By FreeProxyTemplates.com - You are NOT allowed to remove the links below! Licensed under the Creative Commons Attribution-Noncommercial 2.5 -->
<!-- To remove links you have to purchase a licence http://www.freeproxytemplates.com/link-removal -->
  <div align="center">Sponsored By <b><a href="http://www.freeproxytemplates.com">Free Proxy Templates</a></b> &amp; <b><a href="http://laptopforfree.net/">Free Laptop</a></b></div>
</div>
</body>
</html>
<div id="cse">Loading</div>
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
google.load('search', '1', {language : 'en', style : google.loader.themes.V2_DEFAULT});
google.setOnLoadCallback(function() {
var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl(
'016091704141234512345:abcde7t3xjm', customSearchOptions);
customSearchControl.setResultSetSize(google.search.Search.);
customSearchControl.draw('cse');
}, true);
</script>
